package com.whu.exam.modules.user.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("el_user_book")
@ApiModel(value="错题本", description="错题本")
public class UserBook extends Model<UserBook> {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID", required=true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 考试ID
     */
    @TableField("exam_id")
    @ApiModelProperty(value = "考试ID", required=true)
    private String examId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID", required=true)
    private String userId;

    /**
     * 题目ID
     */
    @TableField("qu_id")
    @ApiModelProperty(value = "题目ID", required=true)
    private String quId;

    /**
     * 加入时间
     */
    @TableField("create_time")
    @ApiModelProperty(value = "加入时间", required=true)
    private Date createTime;

    /**
     * 最近错误时间
     */
    @TableField("update_time")
    @ApiModelProperty(value = "最近错误时间", required=true)
    private Date updateTime;

    /**
     * 错误时间
     */
    @TableField("wrong_count")
    @ApiModelProperty(value = "错误时间", required=true)
    private Integer wrongCount;

    /**
     * 题目标题
     */
    @ApiModelProperty(value = "题目标题", required=true)
    private String title;

    /**
     * 错题序号
     */
    @ApiModelProperty(value = "错题序号", required=true)
    private Integer sort;

}
